package demo;

public class Monk extends Person{


    @Override
    public void eat() {
        System.out.println("只吃素");
    }

    int add(int num1,int num2){
        return num1+num2;
    }


    float add(float f1, float f2){
        return f1+f2;
    }

    void fun1(){
        this.eat();
        super.eat();
    }
}
